Package-level declarations

Types

Link copied to clipboard
interface KoneCanvasLayer
Link copied to clipboard
@Serializable
data class KoneCanvasState(val offset: Point2<Float> = Point2(0f, 0f), val zoom: Float = 1.0f)
Link copied to clipboard
data class PressedLayer
Link copied to clipboard
data class ViewRegion(val xMin: Float, val xMax: Float, val yMin: Float, val yMax: Float)

Properties

Functions

Link copied to clipboard
fun Modifier.defaultKoneCanvasPointerInput(koneCanvasState: MutableState<KoneCanvasState>): Modifier
fun Modifier.defaultKoneCanvasPointerInput(koneCanvasState: MutableStateFlow<KoneCanvasState>): Modifier
inline fun Modifier.defaultKoneCanvasPointerInput(crossinline getKoneCanvasState: () -> KoneCanvasState, crossinline setKoneCanvasState: (KoneCanvasState) -> Unit): Modifier
Link copied to clipboard
fun Modifier.defaultKoneCanvasWithLayersPointerInput(koneCanvasState: MutableState<KoneCanvasState>, layers: KoneList<KoneDraggableCanvasLayer>): Modifier
fun Modifier.defaultKoneCanvasWithLayersPointerInput(koneCanvasState: MutableStateFlow<KoneCanvasState>, layers: KoneList<KoneDraggableCanvasLayer>): Modifier
inline fun Modifier.defaultKoneCanvasWithLayersPointerInput(crossinline getKoneCanvasState: () -> KoneCanvasState, crossinline setKoneCanvasState: (KoneCanvasState) -> Unit, layers: KoneList<KoneDraggableCanvasLayer>): Modifier
Link copied to clipboard
@Composable
fun KoneCanvas(modifier: Modifier = Modifier, koneCanvasState: KoneCanvasState, clip: Boolean = true, onDraw: DrawScope.() -> Unit)
Link copied to clipboard
@Composable
fun KoneCanvasWithLayers(modifier: Modifier = Modifier, koneCanvasState: KoneCanvasState, clip: Boolean = true, layers: KoneList<KoneCanvasLayer> = emptyKoneList())
Link copied to clipboard
@Composable
fun KoneDefaultCanvas(modifier: Modifier = Modifier, koneCanvasStateState: MutableState<KoneCanvasState> = remember { mutableStateOf(KoneCanvasState()) }, clip: Boolean = true, onDraw: DrawScope.(KoneCanvasState) -> Unit)
Link copied to clipboard
@Composable
fun KoneDefaultCanvasWithLayers(modifier: Modifier = Modifier, koneCanvasStateState: MutableState<KoneCanvasState> = remember { mutableStateOf(KoneCanvasState()) }, clip: Boolean = true, layers: KoneList<KoneDraggableCanvasLayer> = emptyKoneList())